﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NCD.ORMDbContext.SqlSugarOrm
{
    /// <summary>
    /// 
    /// </summary>
    public class ConditionalCollections
    {
        public List<KeyValuePair<WhereType, ConditionalModel>> ConditionalList { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class ConditionalModel
    {
        public ConditionalModel()
        {
        }
        public string FieldName { get; set; }
        public string FieldValue { get; set; }
        public ConditionTypeEnum ConditionalType { get; set; }
        public Func<string, object> FieldValueConvertFunc { get; set; }
    }

    /// <summary>
    /// 条件连接符
    /// </summary>
    public enum WhereType
    {
        And = 0,
        Or = 1
    }
}
